package com.zyzd.baseretrofit.net;

import com.zyzd.baseretrofit.bean.remote.ApiResultBean;
import com.zyzd.baseretrofit.bean.remote.LoginBean;
import com.zyzd.baseretrofit.bean.remote.PerformanceListBean;

import java.util.ArrayList;

import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by LZY on 2017/6/26.
 */

public interface Api {

    @POST("login")
    Observable<ApiResultBean<LoginBean>> login(@Query("phone") String phone, @Query("password") String password);

    @POST("my_performance")
    Observable<ApiResultBean<ArrayList<PerformanceListBean>>> performanceLists(@Query("page") int page, @Query("size") int size);

}
